import Vue from "vue";
import VueRouter from "vue-router";
import MyOrder from "../views/my-order.vue";
import MyIndex from "../views/my-index.vue";
import MyMine from "../views/my-mine.vue";
import MyClassify from "../views/my-classify.vue";
import TwoIndex from "../views/two-index.vue";
import TwoNew from "../views/two-new.vue";
import TwoSport from "../views/two-sport.vue";
import SportIndex from "../views/sport-index.vue";
import DomesticSport from "../views/domestic-sports.vue";
import ForeignSport from "../views/foreign-sports.vue";
import UlRoute from "../views/ul-router.vue";
import SecondAbout from "../views/second-about.vue";
import SecondContacts from "../views/second-contacts.vue";
import SecondAll from "../views/second-all.vue";
import SecondAlice from "../views/second-alice.vue";
import SecondBob from "../views/second-bob.vue";
import ThirdBlog from "../views/third-blog.vue";
import ThirdFax from "../views/third-fax.vue";
Vue.use(VueRouter);
const router = new VueRouter({
  routes: [
    { path: "/myorder", component: MyOrder },
    { path: "/myindex", component: MyIndex },
    { path: "/mymine", component: MyMine },
    { path: "/myclassify", component: MyClassify },
    { path: "/twoindex", component: TwoIndex },
    {
      path: "/twosport",
      component: TwoSport,
      children: [
        { path: "/sportindex", component: SportIndex },
        { path: "/domesticsport", component: DomesticSport },
        { path: "/foreignsport", component: ForeignSport },
      ],
    },
    { path: "/twonew", component: TwoNew },
    { path: "/ulroute", component: UlRoute },
    { path: "/secondabout", component: SecondAbout },
    {
      path: "/secondcontacts",
      component: SecondContacts,
      // redirect: "/secondall",
      children: [
        { path: "secondall", component: SecondAll },
        { path: "secondalice", component: SecondAlice },
        {
          path: "secondbob",
          component: SecondBob,
          children: [
            { path: "thirdblog", component: ThirdBlog },
            { path: "thirdfax", component: ThirdFax },
          ],
        },
      ],
    },
  ],
});

export default router;
